home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 012a / lib194.zip / DISK.TXT < prev    next >
Text File  |  1992-06-18  |  935b  |  23 lines

  1. .BIN file to be loaded from within dBASE III PLUS (or Developer's Release) to 
  2. verify that a disk drive has a disk in it before trying to write to it.  The 
  3. program expects to be passed a character variable (not a constant) and returns 
  4. an 'X' in that variable if an error occurred (if the disk isn't ready).  This 
  5. is done by calling the BIOS routine to verify a specific disk sector.  If this 
  6. can't be done, an error is returned without relying on DOS' 
  7. "ABORT, RETRY, IGNORE" message.
  8.  
  9. To use it from within dBASE III PLUS, type:
  10.  
  11.       LOAD DISK
  12.       STORE 'A' TO drivename     && for example
  13.       CALL DISK WITH drivename
  14.       IF drivename = 'X'
  15.           DO error routine
  16.       ELSE
  17.           DO whatever
  18.       ENDIF                   
  19.  
  20. (This was taken from DISK.ASM, which is all that came with the file
  21.  DISK.BIN in the way of documentation. Note that the code above works for
  22.  dBASE IV just fine ... Ken)
  23.